<?php

namespace app\index\common;
class ApiResponse
{
    public static function json($code, $msg, $data = [])
    {
        $result = [
            'code' => $code,
            'msg' => $msg,
            'data' => $data,
        ];

        return json($result);
    }
}